#ifndef _RENDER_HELPER_H_
#define _RENDER_HELPER_H_
#include "PCH.h"
#include "RasterizerState.h"
#include "BlendState.h"
#include "DepthStencilState.h"
#include "SamplerState.h"
#include "StateDefines.h"
namespace DeviousRenderer
{

	D3D11_CULL_MODE ConvertCullMode(ERasterizerCullMode cullMode)
	{
		switch (cullMode)
		{
		case CM_CULL_FRONT:
			return D3D11_CULL_FRONT;
		case CM_CULL_BACK:
			return D3D11_CULL_BACK;
		default:
			return D3D11_CULL_NONE;
		}
	}

	D3D11_FILL_MODE CovertFillMode(ERasterizerFillMode fillMode)
	{
		switch(fillMode)
		{
		case FM_WIREFRAME:
			return D3D11_FILL_WIREFRAME;
		case FM_SOLID:
			return D3D11_FILL_SOLID;
		default:
			//Error -TODO
			return D3D11_FILL_SOLID;
			break;
		}
	}

}
#endif//_RENDER_HELPER_H_